<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="icon" href="../img/asset-favico.ico">
        <title>预约须知</title>
        <link rel="stylesheet" href="../css/page-health-orderNotice.css" />
        <script src="../plugins/jquery/dist/jquery.min.js"></script>
        <script src="../plugins/healthmobile.js"></script>
        <script src="../plugins/vue/vue.js"></script>
        <script src="../plugins/vue/axios-0.18.0.js"></script>
        <script>
            var id = getUrlParam("id");
        </script>
    </head>
    <body data-spy="scroll" data-target="#myNavbar" data-offset="150">
        <div id="app" class="app">
            <!-- 页面头部 -->
            <div class="top-header">
                <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
                <span class="center">传智健康</span>
                <span class="f-right"><i class="icon-more"></i></span>
            </div>
            <!-- 页面内容 -->
            <div class="contentBox">
                <div class="notice-article">
                    <div class="notice-item">
                        <div class="item-title">
                            体检套餐：
                            <div><br></div>
                            <div class="item-content">
                                <div class="type-title" id="0">
                                    <h4>张三</h4>
                                    <h4>男</h4>
                                    <h4>入职体检套餐</h4>
                                    <h4>2019-09-08</h4>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="notice-item">
                        <div class="item-title">健康师建议及治疗方案</div>

                    </div>
                    <div class="notice-item">
                        <div class="item-title">体检报告：1</div>

                    </div>
                    <div class="notice-item">
                        <div class="item-title">健康师意见：1</div>

                    </div>
                    <div class="notice-item">
                        <div class="item-title">
                            建议药物：
                            <div><br></div>
                            <div class="item-content">
                                <div class="type-title" >
                                    <h4>埃莫西</h4>
                                    <h4>健胃消食片</h4>
                                </div>
                            </div>
                        </div>


                    </div>
                    <div class="notice-item">

                        <div class="item-title">
                            建议运动：
                            <div><br></div>
                            <div class="item-content">
                                <div class="type-title" >
                                    <ul>
                                        <li v-for="sport in sportInfo">
                                            {{sport.sportName}}
                                        </li>
                                    </ul>
                                </div>
                            </div>

                        </div>
                    </div>

                </div>
            </div>
        </div>
    </body>
    <script>
        var vue = new Vue({
            el:'#app',
            data:{
                foodInfo:{},
                sportInfo:[]
            },
            mounted(){
                axios.post("/phoneknowledge/findSportById.do?id=" + id).then((response) => {
                    this.sportInfo = response.data.data;
                    alert(this.sportInfo)
                });
                //axios.post("/phoneknowledge/findById2.do?id=" + id).then((response) => {
                   // this.foodInfo = response.data.data;
               // });

            }
        });
    </script>
</html>